package com.lancoo.ccas52.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 选课计划
 * </p>
 *
 * @author quin.song
 * @since 2023-01-12
 */
@Data
@Accessors(chain = true)
@TableName("css_task_info")
@ApiModel(value = "CssTaskInfo对象", description = "选课计划")
public class CssTaskInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "css_task_id", type = IdType.AUTO)
    private Integer cssTaskId;

    private Integer taskId;

    private String cssTaskName;

    @ApiModelProperty("选课任务进度: 0：未发布选课 1：发布选课页面完成（发布完成） 2：选课结果（选课结束）")
    private Integer cssTaskStatus;

    @ApiModelProperty("1预选 2正式选课")
    private Integer type;

    @ApiModelProperty("选课轮次1正补退 2正退 3正补 4正")
    private Integer round;

    @ApiModelProperty("选课说明")
    private String description;

    @ApiModelProperty("最低开班人数")
    private Integer classNum;

    @ApiModelProperty("1开启重修学生选课 2不开启")
    private Integer isRetake;

    @ApiModelProperty("主修学分上限")
    private Double creditLimitMain;

    @ApiModelProperty("主修课程数上限")
    private Integer courseLimitMain;

    @ApiModelProperty("辅修学分上限")
    private Double creditLimitMinor;

    @ApiModelProperty("辅修课程数上限")
    private Integer courseLimitMinor;

    @ApiModelProperty("1仅主修 2存在辅修")
    private Integer onlyMajor;

    @ApiModelProperty("创建人id")
    private String createdUserId;

    private String createdUserName;

    private LocalDateTime createdTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String sensitiveTime;

    @TableField(exist = false)
    @ApiModelProperty("选课轮次id")
    private Integer id;

    @TableField(exist = false)
    @ApiModelProperty("阶段")
    private Integer stage;

    @TableField(exist = false)
    @ApiModelProperty("轮次 1正 2补 3退")
    private Integer selectRound;


    @TableField(exist = false)
    @ApiModelProperty("1：已结束，2：进行中，3：未开始")
    private Integer state;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty("选课开始时间")
    private LocalDateTime beginTime;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty("选课结束时间")
    private LocalDateTime endTime;
}
